package cn.dinghu.pro.mapper;

import cn.dinghu.pro.entity.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 用户表 Mapper 接口
 * </p>
 *
 * @author dinghu
 * @since 2025-10-14
 */
@Mapper
public interface UserMapper extends BaseMapper<User> {
    /**
     * 登录
     * @param username
     * @param password
     * @return
     * @throws Exception
     */
    User doLogin(@Param("username") String username, @Param("password") String password) throws Exception;
}
